#include "Node.hh"
#include "DoublyNode.hh"

Node* Node::generate(NodeType Type)
{
	Node* Return;
	switch (Type)
	{
		case DoublyNodeType:
			Return = new DoublyNode;
			break;
		
		default:
			notifyError(Type, "Unknow type.");
			Return = NULL;
			break;
	}
	
	return Return;
}